package cn.kshost.zqyg.order.mapper;

import cn.kshost.zqyg.model.entity.order.OrderInfo;
import jakarta.validation.Valid;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface OrderInfoMapper {
    void insertOrderInfo(OrderInfo orderInfo);


    OrderInfo selectOrderInfoById(Long id);

    List<OrderInfo> selectOrderInfoListByorderStatus(@Param(value = "userId") Long id ,@Param(value = "orderStatus") Integer orderStatus);

    OrderInfo selectOrderInfoByOrderNo(Long orderNo);

    void updateById(OrderInfo orderInfo);
}
